package com.smart.model.dtomapper;

import com.smart.model.domain.UserIdentificationDO;
import com.smart.model.request.UserIdentificationRequest;
import com.smart.model.vo.UserIdentificationVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface UserIdentificationDtoMapper {

    UserIdentificationDtoMapper INSTANCE = Mappers.getMapper(UserIdentificationDtoMapper.class);

    /**
    * DO to VO
    * @param userIdentificationDO
    * @return
    */
    UserIdentificationVO do2VO(UserIdentificationDO userIdentificationDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    UserIdentificationDO request2DO(UserIdentificationRequest request);
}
